﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Catalog.aspx.cs" Inherits="sysadmin_CourseManager_Catalog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>专业管理</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 
        function AutoColseAler()
        {
            showFloat();
            setTimeout("ShowNo()",3000);
        }
    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="titbg_right">
            <tr>
                <td class="titbg_left">
                    <asp:Label ID="lbl_InfoTitle" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <asp:Repeater ID="rptCatalog" runat="server" OnItemCommand="rptCatalog_ItemCommand">
            <HeaderTemplate>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList2">
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td style="width:400px">
                        <%#Eval("Text")%>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Label ID="lblCatalogID" Text='<%#Eval("Value")%>' runat="Server" Visible="false"></asp:Label>
                        <asp:Button ID="btn_Add" runat="server" Text="添加" CommandName="btnadd" CommandArgument='<%#Eval("Value")%>'
                            CssClass="inputBotton2" />
                        <asp:Button ID="btn_Editor" runat="server" Text="编辑" CommandName="btnedit" CommandArgument='<%#Eval("Value")%>'
                            CssClass="inputBotton2" />
                        <asp:Button ID="btn_del" runat="server" Text="删除" CommandName="btndel" CommandArgument='<%#Eval("Value")%>'
                            CssClass="inputBotton2" />
                        <asp:Label ID="lbl_msg_description" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
            background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
            left: 0; top: 0; display: none; overflow: hidden;">
        </div>
        <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
            width: 780px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%;
            margin: -200px 0 0 -400px;">
            <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                    <tr>
                        <th>&nbsp;</th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_msg_description" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tree-bottom-bg1">
                            &nbsp;<input id="btn_colse" type="button" value="<%= GetLanageValueByKey("btn_Colse", PowerCreator.LMS.Language.LanagetItemType.Page) %>" class="inputBotton2" onclick="ShowNo();" /></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
